﻿package ${feign.packageName};

import cn.demoncat.util.lang.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import ${entity.fullName};

/** 
 * ${entity.comment} Feign
 *
 * @author ${entity.author}
 *
 * @since ${entity.time}
 */
@FeignClient(name="${feign.appName}", contextId="${entity.simpleName}Feign", path="/rest${entity.url}")
public interface ${entity.name}Feign{

    /**
	 * 添加
	 *
	 * @param data
	 * @return
	 *
	 * @author ${entity.author}
	 *
	 * @since ${entity.time}
	 */
	@PostMapping("/add")
	Result add(${entity.name} data);

	/**
	 * 删除
	 *
	 * @param id
	 * @return
	 *
	 * @author ${entity.author}
	 * @since ${entity.time}
	 */
	@GetMapping("/del")
	Result del(@RequestParam("id") ${entity.idAttr.type} id);

}